package org.cyzy.service;

import org.cyzy.entity.Homework;
import java.util.List;

public interface HomeworkService {
    /**
     * 获取所有作业
     */
    List<Homework> getAllHomeworks();

    /**
     * 统计所有作业数量
     */
    int countAllHomeworks();

    /**
     * 添加新作业
     */
    int addHomework(Homework homework);

    /**
     * 根据ID查询作业详情
     */
    Homework getHomeworkById(Long homeworkId);
    /**
     * 获取所有作业及其提交人数统计
     */
    List<Homework> getAllHomeworksWithSubmitCount();
}
